home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Python 1.3.3 / Python 133 PPC / mkapplet / mkapplet.rsrc / PYC_15089___main__ (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  1996-05-20  |  7.7 KB  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.3)
  3.  
  4. '''Create an applet from a Python script.
  5.  
  6. This puts up a dialog asking for a Python source file (\'TEXT\').
  7. The output is a file with the same name but its ".py" suffix dropped.
  8. It is created by copying an applet template and then adding a \'PYC \'
  9. resource named __main__ containing the compiled, marshalled script.
  10. '''
  11. 'Create an applet from a Python script.\n\nThis puts up a dialog asking for a Python source file (\'TEXT\').\nThe output is a file with the same name but its ".py" suffix dropped.\nIt is created by copying an applet template and then adding a \'PYC \'\nresource named __main__ containing the compiled, marshalled script.\n'
  12. DEBUG = 0
  13. import sys
  14. sys.stdout = sys.stderr
  15. import string
  16. import os
  17. import marshal
  18. import imp
  19. import macfs
  20. import MACFS
  21. import MacOS
  22. *
  23. if __name__ == '__main__':
  24.     main()
  25.  
  26.